package com.example.mail.accountservice.service.impl;

import com.example.mail.accountservice.entity.Account;
import com.example.mail.accountservice.mapper.AccountMapper;
import com.example.mail.accountservice.service.AccountService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhou
 * @since 2022-01-10
 */
@Service
@AllArgsConstructor
public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> implements AccountService {

    private final AccountMapper accountMapper;

    @Override
    public List<Account> queryBySQL() {
        return accountMapper.selectAll();
    }
}
